//
//  ZTEssenceViewController.m
//  项目练习
//
//  Created by 张江涛 on 15/11/30.
//  Copyright © 2015年 张江涛. All rights reserved.
//

#import "ZTEssenceViewController.h"
#import "ZTleftController.h"

@interface ZTEssenceViewController ()

@end

@implementation ZTEssenceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //导航栏背景图片
    self.navigationItem.titleView = [[UIImageView alloc]initWithImage:[UIImage  imageNamed:@"MainTitle"]];
    //导航栏左侧按钮
    UIBarButtonItem *essenceItem  = [UIBarButtonItem  itemWithImage:@"MainTagSubIcon" highImage:@"MainTagSubIconClick" traget:self action:@selector(essenceItemClick)];
    self.navigationItem.leftBarButtonItem = essenceItem;
}


//点击左上角按钮
- (void)essenceItemClick
{
    ZTleftController *essenLeft = [[ZTleftController alloc]init];
    //当导航push到下一个页面时隐藏tabBa
    essenLeft.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:essenLeft animated:YES];
}
@end
